package com.habo.service.impl;

import com.habo.dao.ShareMapper;
import com.habo.entity.Share;
import com.habo.service.ShareService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by junbb on 2017/3/27.
 */
@Service
@Transactional
public class ShareServiceImpl implements ShareService {
    @Resource
    private ShareMapper shareMapper;

    public void shareInsert(Share share) {
        shareMapper.shareInsert(share);
    }

    public void shareDeleteBySId(int S_id) {

    }

    public List<Share> shareFindAll() {

        return null;
    }

    public List<Share> shareFindById(int U_id) {
        return null;
    }

    public List<Share> shareFindByPage(int U_id, int sharepage, int pagesize) {
        return shareMapper.shareFindByPage(U_id, sharepage, pagesize);
    }
}
